System, method, and article of manufacture for utilizing implicit ratings in collaborative filters

ABSTRACT

A prediction information system for use between a user and an electronic rating broker is provided. The prediction information system includes a user interface for presenting items as information to the user. An input mechanism receives data input by the user. A processor in cooperation with the user interface and the input mechanism performs an algorithm for: obtaining a particular implicit measure, generating an implicit rating as a function of the particular implicit measure, submitting the implicit rating to the rating broker, receiving prediction results for other items from the rating broker, and presenting the prediction results to the user through the user interface. In addition, a method for operating an electronic rating broker on a computer system in order to provide prediction information to a user based on implicit ratings is provided. Also, a storage device readable by a computer system for implementing this method is provided.

FIELD OF THE INVENTION

The present invention relates generally to systems that create predictions or lists of recommended items for users based on the ratings of other users. More specifically, the present invention is directed to the use of implicit measures of user interest in items that are converted into implicit ratings for those users. Subsequently, the implicit ratings can be used to create predictions of the value users will find in the item. The predictions can be used by the system to select which items to show to users, or by users to select which items from a list to peruse.

BACKGROUND OF THE INVENTION

Centuries ago the critical information problems were how to record information and how to distribute information. Today, the computer has nearly completely solved these problems. Most information is now recorded directly on computer media and as a result thousands of pages of information are moved around the world in seconds via electronic data networks. In the process of solving information dissemination problems, however, people have overwhelmed themselves with the sheer volume of available information. The critical question is how to benefit from the richness of the available information without getting bogged down by the overwhelming volume.

One possibility is to make use of the opinions each person forms when perusing any piece of information. Taken together, the web of all of these opinions is a rich resource that could be used to sift through the available information for nuggets of value. This technique is already applied informally, through word-of-mouth in the physical world, and through forwarded mail, news, and uniform resource locators (URLs) in the virtual world. However, these informal processes are not powerful enough to deal with the millions of new documents being created every week. Computers helped create this problem; perhaps they can help solve it. A need exists for a solution that gathers this collective wisdom more formally, and applies it to the problem of selecting which of the available documents will be valuable to each person, individually.

These principles have been applied in one area of research, known as collaborative filtering. Collaborative filtering seeks to understand the relationships between people, and to use those relationships to help people meet information their needs more effectively. Ratings are entered by the user to indicate his or her opinion of the document to the collaborative filtering system. Based on previously entered ratings by other users, predictions are made for a user of the value of an item to that user. Ratings often represent the user's evaluation of the document along one or more dimensions. There are many possible dimensions, including overall enjoyment, value to the task at hand, interest in the topic, reputation of the author, appropriateness for the context, quality of writing, and amount of new material versus repeated material. Ratings along each of these dimensions can be either explicit, requiring special user interaction, or implicit, captured from ordinary user actions.

The most common explicit rating methods in collaborative filtering systems are single keystrokes entered by users. The keystrokes usually represent values along a single ordered dimension, discretized for ease-of-entry. Ratings can also be entered through graphical sliders, which are similar, except that they often support more possible values. Another common rating method is textual ratings. Textual ratings are either keyword or free-form. Keyword textual ratings often focus on characterizing the topic. Keyword textual ratings that focus on measuring the quality are very similar to keystroke ratings. Free-form textual ratings can be valuable for users, but are difficult to process automatically. Free-form textual ratings are more common in domains in which the total number of documents is relatively low, so users can peruse a substantial fraction of them.

Implicit ratings are collected by non-intrusively watching the user read a document. Observations about what the user does with the document may lead to insights into the value of the document to the user. For instance, if a user reads the title or abstract of a document, but chooses not to read the document, that may indicate low interest in the topic of the document. On the other hand, if the user chooses to save a document to a file, or to forward it to a colleague, that may indicate higher interest in the document. The time that a user spends reading a document (time spent reading) is another implicit rating. Intuitively, users are likely to spend longer with documents they find valuable than with documents they find uninteresting.

Collaborative filtering systems have largely focused on explicit ratings. In small tightly focused groups with substantial shared interests, textual ratings have proven valuable. However, in larger groups with more diverse interests, automatic computation of personalized predictions would benefit from a more structured ratings system.

In a system using explicit ratings, the user answers each question with a keystroke or other indication of preference. The system uses the user's answer to this question to influence its prediction algorithms for this user in the future. Users can informally combine their ratings along any of the possible ratings dimensions to create this single rating. Existing prediction algorithms do a good job of making predictions for users based on explicit ratings along this single dimension.

Although explicit ratings have worked well in practice, there are some significant advantages to implicit ratings. Most importantly, an implicit rating requires no effort on the part of the user, making the collaborative filtering system zero cost to users. This overcomes the problem of user resistance to using a collaborative filtering system. One source of this resistance is the fact that the collaborative filtering system returns little or no value to a user until the user has rated dozens of documents, thus generating enough information for the correlation algorithm to create a correlation group. Another source of resistance is that the rating of documents can be difficult for users to learn how to do. The two sources for this difficulty are learning the interface, and learning to create mental ratings judgments while reading documents.

In contrast, implicit ratings would incur no cost for the user to try the system, and would have no learning curve for either the interface or for creating the ratings. These advantages may mean that implicit ratings would lead to more users, which in turn would lead to more effective correlations and predictions, potentially creating a positive feedback loop. Another advantage is that since implicit ratings do not require any interaction from users, and are fast enough to be transparent to users, they do not induce any hidden effects in how users read documents. For instance, the act of creating an explicit rating might change a user's reading style, changing the total value they receive from the system. On the other hand, an implicit rating is unlikely to change a user's reading style because the user does not do anything different to produce the rating. However, if predictions generated from implicit ratings are presented to the user they may change their reading style.

Therefore, implicit ratings will be valuable if they can be effectively generated from implicit measurements of user behavior. One of the problems of using implicit measurements is finding a way to convert these measures into ratings in a way that leads to effective predictions.

The present invention provides a solution to this and other problems, and offers other advantages over the prior art.

SUMMARY OF THE INVENTION

The present invention relates to a prediction information system for use between a user and an electronic rating broker.

In accordance with one embodiment of the invention, the prediction information system includes a user interface for presenting items as information to the user. An input mechanism is provided for receiving data input by the user. A processor is operatively coupled to the user interface and input mechanism to cooperatively perform several functions. These functions include: obtaining a particular implicit measure, generating an implicit rating as a function of the particular implicit measure, submitting the implicit rating to the rating broker, receiving prediction results for other items from the rating broker, and presenting the prediction results to the user through the user interface.

In addition, the present invention also consists of a method for operating an electronic rating broker on a computer system in order to provide prediction information to a user based on implicit ratings. Also, the present invention can be implemented as a computer-readable program storage device which tangibly embodies a program of instructions executable by a computer system to operate an electronic rating broker on a computer system in order to provide prediction information to a user based on implicit ratings.

These and various other features as well as advantages which characterize the present invention will be apparent upon reading of the following detailed description and review of the associated drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a high level overview of a preferred embodiment prediction information system client-server architecture in accordance with the present invention.

FIG. 2 shows a sample user interface which can be used in the prediction information system shown in FIG. 1.

FIG. 3 is a block diagram of a middle level overview of the preferred embodiment prediction information system client-server architecture shown in FIG. 1.

FIG. 4 is a block diagram of a particular arrangement of devices operating as the prediction information system shown in FIG. 1.

FIG. 5 is a block diagram of an alternative arrangement of devices operating as the prediction information system shown in FIG. 1.

FIG. 6 is a block diagram of a representative hardware implementation which could perform functions of the prediction information system shown in FIG. 1.

FIG. 7 shows a graph containing a histogram of signal and noise distributions for time spent reading.

FIG. 8 shows a graph containing a receiver operating curve (ROC) mapped from the histogram shown in FIG. 7.

FIGS. 9A-9D show graphs of ROCs for several users.

FIG. 10A shows an ROC related to predictions for articles;

FIG. 10B shows a histogram of signal and noise distributions of the predictions for articles used to produce the ROC of FIG. 10A;

FIG. 11 shows a graph of an ROC for predictions.

FIGS. 12 and 13 are block diagrams showing the relationship between the partitions, items, and properties using the domain of movies as an example.

FIG. 14 is a flowchart of steps performed by a preferred embodiment prediction information system as shown in FIG. 1.

DETAILED DESCRIPTION

The prediction information system 140 preferably uses a client-server architecture FIG. 1. Collaborative filtering applications, such as those which can be developed with this system, communicate ratings and predictions with the prediction information system server 142. The server 142 receives ratings from the clients 144 through 146, stores them in its databases 148, analyzes them 150, and sends predictions 152 to the clients 144, 146.

Collaborative filtering applications access the prediction information system server 142 through the client library 154. The client library 154 handles the details of connecting to the server 142 through an open network protocol. This protocol preferably is Transmission Control Protocol/ Internet Protocol (TCP/IP)-based. The application program 144, 146 is linked with the client library 154. Simple application-program interface (API) calls are used to send ratings to the server 142 and receive predictions from the server 142. Both the send and receive operations are transparently buffered in the client library 154 to achieve high performance while maintaining a simple interface for client programs 144, 146.

The prediction information system server 142 architecture itself preferably is flexible, but provides a uniform interface to clients 144, 146. See for example a sample user interface shown in FIG. 2. The prediction information system server 142 is the generic name for the set of processes that provide prediction information system services to client programs 144, 146.

As shown in FIG. 3, the server 142 preferably includes a rating broker 156, prediction processes 158, rating processes 160, a correlation program 162, and a data manager 164. Various types of prediction, ratings, and, correlation programs, or different database back-ends can be used without departing from the scope and spirit of the present invention. The prediction information system rating broker 156 is the part of the server 142 that routes client requests to the appropriate prediction 158 or rating 160 process. Client applications 144, 146 connect to the prediction information system 140 rating broker 156 through the client library 154. Applications are insulated from implementation changes to the server 142 by the consistent API interface.

FIG. 4 shows one possible approach to building a prediction information system 140 in a collaborative filtering environment. In this environment, client programs executed on computers 144 display items and predictions to users utilizing the clients and send explicit ratings and implicit measures to servers 142 via an interactive network 176. The collaborative filtering servers 142 receive ratings and implicit measures from the clients 144 via the interactive network 176. Also, clients 144 receive items from separate servers 174. The interactive communication network 176 can take many forms. For example, the network 176 may be a data bus, a public switched telephone network (PSTN), a public data network, a private data network, a wireless data service or any combination thereof.

An alternative architecture for collaborative filtering is shown in FIG. 5. Client computers 144 receive partially or completely formatted displays from servers 174, with predictions merged with items. Item servers 174, such as World-Wide Web (WWW) servers 178 directly communicate with collaborative filtering servers 142 to send explicit ratings and implicit measures from clients 144, and to receive predictions.

It will be appreciated by those skilled in the art that the principles described herein could readily be applied to other types of environments besides collaborative filtering without departing from the scope and spirit of the present invention. For example, data mining systems and information retrieval systems may benefit from the teachings of the present invention.

Referring now to FIG. 6, the preferred embodiment of the present invention is preferably practiced in the context of an operating system resident on one or more workstations or personal computers such as the Sun Microsystems®) Sparc Station®, IBM® PS/2® or Apple® Macintosh® computer. The prediction system clients and or servers may each operate on one or more of these workstations. A representative hardware environment 100 is depicted in FIG. 6, which illustrates a typical hardware configuration of a workstation in accordance with the preferred embodiment having a central processing unit 110, such as a microprocessor, and a number of other units interconnected via a system bus 112. The workstation shown in FIG. 6 includes a Random Access Memory (RAM) 114, Read Only Memory (ROM) 116, an I/O adapter 118 for connecting peripheral devices such as disk storage units 120 to the bus 112, a user interface adapter 122 for connecting a keyboard 124, a mouse 126, a speaker 128, a microphone 132, and/or other user interface devices such as a touch screen (not shown) to the bus 112, communication adapter 134 for connecting the workstation to a communication network (e.g., an interactive network) and a display adapter 136 for connecting the bus 112 to a display device 138. The workstation typically has resident thereon an operating system such as UNIX®, the Microsoft® Windows or Windows NT operating system, the IBM OS/2® operating system or the Apple MacOS® operating system.

In one embodiment, the prediction information system 140 may have a client processor 144 and a rating broker 156 located within a single apparatus 100. In this embodiment, the system 140 may be set up as a kiosk in a store that customers query for a recommendation on a movie, book, music, or other choices.

In another embodiment as shown in FIGS. 4 and 5, the client processor 144 communicates with the rating broker 156 operating on a server 142 through an interactive network 176. In such an arrangement, the user interface, input mechanism, and processor together form a client computing device which is operatively coupled through the interactive network 176 to a server 142 which executes a process that performs functions of the rating broker 156. In some instances it may be beneficial to split the processing tasks between a first processor and a second processor which together perform the operations of the client processor 144. If this splitting of processing of tasks is done, then the user interface, input mechanism, and first processor together may form a client computing device which is operatively coupled through the interactive network 176 to a server 142 which houses the second processor and which executes a process that performs functions of the rating broker 156.

One application for the prediction information system 140 is reading Usenet news. A typical news-reading session for a prediction information system 140 enhanced newsgroup works as follows. The user starts up a news-reader on a computing device 144, which creates a connection to both the news server 174 and the other server 142 which operates as the rating broker 156. The newsreader authenticates itself to the rating broker 156 by using a pseudonym chosen, and registered with the rating broker 156 through, for example, a World Wide Web site. The rating broker 156 makes no association between a user's pseudonym, and his real identity.

The user selects a newsgroup to read, and "enters" the newsgroup. The newsreader contacts the news server 174 and obtains header information for items the user has not read yet. The newsreader contacts the rating broker 156 and requests predictions for the unread items. The rating broker 156 calculates personalized predictions for the user and returns the predictions to the newsreader. FIG. 2 illustrates what the predictions look like to the user on a user interface used by the newsreader. Newsreaders such as the UNIX®-based GNUS, tin, or xrn could be used. Once the user has the predictions he can pick and choose which items he wants to read based on the subject lines and the predictive scores supplied for each item. In FIG. 2, a prediction of NA 180 indicates that the rating broker 156 could not calculate a prediction for the item. When the user selects an item to read the newsreaders sets a timer to keep track of how much time the user spends reading the article as an implicit measure. After the user has read some or all of the article he gives the article a rating on a scale from 1 to 5. To make rating articles as easy as possible, the interface is designed so that a rating can be entered with a single extra keystroke. Users can rate articles in answer to questions like the following sample question: "Would I like to see more articles like this one?" In answer to this question, a 1 indicates a strong no and a 5 indicates a strong yes.

Once the user has read and rated the articles he is interested in he "leaves" the newsgroup. When a user leaves a newsgroup the newsreader sends all the ratings and times collected for the read articles to the rating broker 156. The prediction information system 142 stores the ratings, time measurements, and predictions in a database for analysis.

Arbitrarily Mapping Implicit Measures to Rating

The first problem is how to turn an implicit measure into a rating that is useful. One way to make the conversion is to arbitrarily map blocks of time into ratings. For example 0-16 seconds maps to a rating of 1, 17-27 seconds maps to a rating of 2, etc. In Table 1 a mapping of times to ratings is shown. This mapping was created by taking the average of the time spent reading for each item rated with each rating.

                  TABLE 1                                                          ______________________________________                                                Time Spent                                                                     Reading Rating                                                          ______________________________________                                                 0-16   1                                                                      17-27   2                                                                      28-38   3                                                                      39-56   4                                                                      57-     5                                                               ______________________________________                                    

Applying ROCs Directly

A better mechanism for converting time spent reading (TSR) to a rating is to apply signal detection theory to determine the best threshold. Signal detection theory is a mathematical theory that models the process of detecting signals in noise. Signal detection theory decisions are based on the value of a decision variable which varies for both signal and noise. If the value of the decision variable is greater than some threshold for an item then that item is classified as a signal. If the value of the decision variable is less than the threshold for an item, then the item is classified as noise.

In this case, the decision variable is defined to be TSR. If the value of TSR for an article is greater than some threshold, then the article will be classified as a signal, and it will be given a high rating. If the TSR for an article is less than the threshold, then it will be classified as noise. A software development toolkit can be provided with the tools needed to set an appropriate threshold or an operating point for the decision variable.

To select the operating point a graph is constructed that contains a noise distribution and a signal distribution. In FIG. 7, a graph 182 is shown containing the signal and noise distributions for TSR. In this case, the user's actual rating of the article is used to classify it as either signal or noise. Any article that receives a rating less than three is classified as noise and an article that receives a rating of four or more is classified as signal. The graph represents the proportion of the time that an article classified as signal or noise had the given TSR value. If all the values under each curve are added together, they will sum to 1.0.

Once the signal and noise curves are determined, the hit rate and the false alarm rate for a series of operating points can be calculated. The hit rate for a given operating point is determined by selecting a point on the x axis and calculating the area under the signal curve to the right of the operating point. The false alarm rate is determined by calculating the area under the noise curve to the right of the operating point. A Receiver Operating Curve (ROC) can be constructed by calculating hit rate and false alarm rate pairs for a sequence of operating points. The false alarm rate and hit rate correspond to the x and y coordinates of points on the ROC. The ROC 184 for the histogram 182 is shown in FIG. 8. The area under the ROC 184 defines the sensitivity of the system. The higher the sensitivity, the better the system is at discriminating between signal and noise.

The ROC 184 can be used to directly select an appropriate threshold for creating a two valued rating. Good thresholds are points near the "knee" 186 of the curve 184. In FIG. 8, an operating point corresponding to a reading time of 12 seconds is chosen, which gives a hit rate of 0.47 and a false positive rate of 0.18. Any article with a reading time of more than 12 seconds will receive a rating of 2 and any article with a reading time of 12 seconds or less will receive a rating of 1.

In studying TSR, it was noted that different users are more or less sensitive to the time spent reading. Also, it was noted that how signal and noise are defined will make the system appear to be more or less sensitive. FIG. 9A shows an ROC for all users and FIGS. 9B-9D show ROCs for three specific users. In each case, three different curves are shown where the top curve (the most sensitive) represents the condition where noise is defined to be a rating of 1 and signal to be a rating of 4 or 5 (ignoring 2 and 3). The bottom curve (the least sensitive) represents the condition where noise is defined to be ratings of 1-3 and signal to be ratings of 4 or 5.

Indirectly using ROCs to Convert Implicit Measures to Ratings

Using the stored ratings and time values, conditions can be created to compare time based ratings versus ratings entered by the user. These comparisons can be used to evaluate implicit ratings methods, and also as a means of determining the best thresholds for converting implicit measures into ratings.

There are many ways to analyze and compare the results of collaborative filtering algorithms. Some of the existing metrics include mean absolute error, mean squared error and the correlation between ratings and predictions.

The mean absolute error is computed by taking the absolute value of the difference between the prediction made for the user and the actual rating the user entered. The mean absolute error is the mean of all of these absolute differences. The lower the mean absolute error, the lower the error in each prediction. A weakness of the mean absolute error is that it does not measure the range of the errors. For this reason, mean absolute error is often each curve. FIG. 10B shows the signal and noise curves (displayed as histograms 190) while FIG. 10A illustrates the resulting ROC does not sufficiently penalize algorithms that make large errors. It is desirable to penalize large errors more than small errors, because large errors are more likely to lead users to incorrect sampling decisions. The mean squared error is similar to mean absolute error, except that it squares each of the individual absolute errors before computing the mean. Mean squared error, similar to least squares regression, disproportionately penalizes algorithms that make large errors more than small. Mean squared error is a better metric, but, like all other known metrics, it is not directly measuring what users care about: How often does the prediction system lead them to make the correct selection decision? The same sensitivity measurement from signal detection theory that was used to directly convert implicit measures into implicit ratings is also a good metric for comparing collaborative filtering prediction algorithms.

To construct an ROC for a group of predictions, a list that contains (prediction, rating) pairs for a group of articles is first generated. Each element of the list is then classified as signal or noise based on the rating. If the user rated an article a one, two, or three, then that article is classified as noise. If the user rated the article a four or five, then the article is classified as a signal. Subsequently, the signal and noise curves can be generated by putting the predictions into intervals, and calculating the proportion of predictions that fall within each interval. The ROC is constructed by moving the operating point from zero to five, in small increments, and empirically calculating the area under each curve. FIG. 10 shows the signal and noise curves (displayed as histograms 190) along with the resulting ROC 192 for a humor newsgroup.

The ROCs reveal much about the characteristics of the underlying prediction algorithms. For example, in the ROC graph 194 shown in FIG. 11 the straight line 196 from 0,0 to 1,1 is the chance line. The chance line represents how sensitive an algorithm would be if it just produced random ratings. The ROC 194 also lets you see how many hits or false alarms would occur if a user read every article with a prediction greater than the selected operating point. For example in FIG. 11 if all articles with a prediction greater than 2.25 are read, then a user will get a hit rate of 80% and a false alarm rate of 30%. Finally, the number of distinct operating points along the curve details the algorithm's flexibility. If there are only a few operating points that means that the algorithm is not producing a wide range of predictions.

ROCs can be used to evaluate the quality of predictions made using implicit ratings versus the quality of predictions made using explicit ratings. These evaluations enable systems builders to make tradeoffs between effort from their users and the quality of the predictions or recommendations they are able to deliver to the users. The quality of different prediction systems is compared by plotting their ROCs on the same axes, and studying the regions in which each curve dominates the other.

ROCs can also be used to construct cutoffs for implicit rating systems. Based on a history of user ratings, different methods for interpreting TSR and other implicit measurements can be compared. ROCs can be created for each method, and the method that produces the most attractive control points for an application can be selected.

Issues in Converting Implicit Measures into Ratings

There are several additional issues in converting implicit measures into ratings. For instance, in many applications there will be multiple domains of items. For instance, in Usenet news there are multiple newsgroups, each with items on different topics. Different methods may be appropriate for converting implicit measures into ratings in each domain. ROCs can be used to select the best technique in each domain.

In many domains, implicit measures may be skewed by unexpected user behaviors. For instance, users may answer the phone while reading a news article. Alternately, a user may forward a document to a friend with an introduction like "Look how stupid this document is!". The implicit ratings system might think both of these documents are very interesting to the user, while the user actually finds them both completely uninteresting. False negatives are also possible in some interfaces. For instance, a user may see a very interesting item and decide to read it later because he does not have time to study it carefully right now. The system would measure the short time spent reading and incorrectly conclude the user did not find the document interesting. Overall, these effects may lead to implicit ratings systems that produce predictions that are not valuable to users. In these cases, implicit measures will have to be validated before being converted into ratings. For instance, if the TSR is larger than five minutes, it is discarded in the Usenet application. ROCs can be used to determine the most effective strategies for validating implicit measures.

In some domains, implicit measures must be translated based on characteristics of the item being perused. For instance, in Usenet articles are of varying lengths, which might effect TSR. One approach to translating TSR in this domain would be to adjust it for the length of the article. ROCs can be used to evaluate translation strategies.

Prediction Information System APIs and functions

As previously noted, the principles of the present invention can be embodied in a series of application programming interfaces (APIs) and functions for use in the prediction information system. The following discussion will be focused on a prediction information system API which is implemented in the preferred embodiment as "GroupLens" components. GroupLens™ is a trademark of NetPerceptions, Inc. It will be appreciated by those skilled in the art that the functions and interfaces described hereinafter may be implemented in a different set of components without departing from the scope and spirit of the invention as claimed. Before getting into the specific details some concepts used in this API will be defined.

Users and Passwords

The prediction information system server 142 identifies users by a user identifier (ID) that can be selected by users or by the client application. In many cases, the user ID will be linked to customer account information, so other services can be provided to users. In some applications, users may prefer to control their privacy. In these cases, it is desirable to allow them to choose their own unique IDs.

Items

An item is a thing that is displayed to the end-user with predictions, and for which the end-user provides ratings. For example, in the domain of movies, each movie would be an item. An item must have a name. For the purposes of the preferred embodiment prediction information system 140 API, the name is a string that uniquely identifies the item and is no longer than GL₋₋ MAXITEMNAMELEN (currently 128 characters). For books, an ISBN would be a good name. No similar identifier currently exists for movies.

Partitions

A partition is a collection of items. In the domain of movies, a partition would be a category such as Action, Comedy, Drama, or Science Fiction. Partitions are used for scaling and to ensure that predictions are based on ratings that are appropriate. For example, a person's ratings for sports news may be useless for predicting the person's interest in movies. By correctly partitioning the database of items, the prediction information system 140 server 142 can provide more accurate predictions than could be produced by an un-partitioned database.

An item may be in more than one partition. In the preferred embodiment, a partition must have a unique name that is no longer than GL₋₋ MAXGROUPNAMELEN (currently 128 characters).

Partition Handles

The API functions that deal with ratings and predictions take a partition handle as a parameter. This handle is similar to a file descriptor and is created by a GroupLens₋₋ OpenPartition function. The GroupLens₋₋ OpenPartition function opens a specified partition for a specified user. When the handle is no longer needed, it is destroyed with a GroupLens₋₋ ClosePartition function. Up to 50 partition handles may be open at one time in a thread.

Properties and Property Lists

Data associated with an item is handled in a property list. A property list contains zero or more identifier/value pairs, where the property identifier is a key associated with the value. For example, properties of an item prediction include the prediction itself, a lower confidence bound, and a higher confidence bound. FIGS. 11 and 12 are block diagrams showing the relationship between the partitions, items, and properties using the domain of movies as an example. More specifically FIG. 12, shows Groups, Items, and Properties in the Prediction Buffer and FIG. 13 shows Groups, Items, and Properties in the Rating Buffer.

Property lists are central to the prediction information system 140 API. All information about an item that is received from or sent to the prediction information system server 142 is handled in the form of a property list. Properties provide considerable flexibility to applications.

Table 2 shows the current properties supported by the prediction information system server 142. Each property has the following information:

Property ID. A symbolic constant that is used in all API calls requiring a property ID. These constants are defined in GroupLens.h.

Property Name. A text representation of the symbolic constant. While the Property ID and Property Name look the same in the table, the former is translated to an integer while the latter is a string. The Property Name is useful in error messages.

Property Type. A type assigned to the property indicating what it is used for.

Value Type. The type of the property value, allowing type checking.

Description. A text description of the meaning of the property.

The GL₋₋ PRED and GL₋₋ RATING properties specify a prediction and a rating, respectively. Both of these properties use a 0-5 scale, where 0 means that the item has no prediction/rating, 1 is the lowest prediction/rating, and 5 is the highest. Actual predictions and ratings are floating point numbers between 1 and 5.

Most client applications will most often use PropertyIDs to interact with the prediction information system 140 API. Some available functions convert PropertyIDs to names, types, or descriptions.

                                      TABLE 2                                      __________________________________________________________________________     Property ID                                                                              Property Name                                                                            Property Type                                                                             Value Type                                                                            Description                              __________________________________________________________________________     GL.sub.-- PRED                                                                           GL.sub.-- PRED                                                                           GL.sub.-- PRED.sub.-- PROP                                                                GL.sub.-- FLOAT                                                                       The prediction for a user                                                      and item.                                GL.sub.-- CONFLOW                                                                        GL.sub.-- CONFLOW                                                                        GL.sub.-- PRED.sub.-- PROP                                                                GL.sub.-- FLOAT                                                                       The lower bound of the                                                         confidence interval.                     GL.sub.-- CONFHIGH                                                                       GL.sub.-- CONFHIGH                                                                       GL.sub.-- PRED.sub.-- PROP                                                                GL.sub.-- FLOAT                                                                       The upper bound of the                                                         confidence interval.                     GL.sub.-- PREDTYPE                                                                       GL.sub.-- PREDTYPE                                                                       GL.sub.-- PRED.sub.-- PROP                                                                GL.sub.-- STRING                                                                      The type of prediction.                  GL.sub.-- RATING                                                                         GL.sub.-- RATING                                                                         GL.sub.-- RATING.sub.-- PROP                                                              GL.sub.-- FLOAT                                                                       The explicit rating                                                            specified by the user for                                                      the item.                                GL.sub.-- TIME                                                                           GL.sub.-- TIME                                                                           GL.sub.-- RATING.sub.-- PROP                                                              GL.sub.-- INTEGER                                                                     The amount of time the user                                                    spent looking at the item.               GL.sub.-- TEXT                                                                           GL.sub.-- TEXT                                                                           GL.sub.-- GENERAL.sub.-- PROP                                                             GL.sub.-- STRING                                                                      A general-purpose text                                                         property.                                GL.sub.-- NUMRATINGS                                                                     GL.sub.-- NUMRATINGS                                                                     GL.sub.-- PRED.sub.-- PROP                                                                GL.sub.-- INTEGER                                                                     The number of ratings on                                                       which the prediction is                                                        based.                                   __________________________________________________________________________

Caches and Buffers

A prediction is retrieved with one of the GroupLens₋₋ GetPredictionProperty functions. To improve performance, predictions are maintained inside the API in a prediction cache. This cache stores predictions that have already been received from the prediction information system server 142 for local access as needed. The cache can be filled either by a batch process or one at a time, with the batch process being far more efficient.

The prediction cache is filled in a batch as follows:

Add items to the prediction fetch list using calls (one per item) to GroupLens₋₋ AddItemToPredictionFetchList.

Fetch all of the items in the list using a single call to GroupLens₋₋ FetchPredictions.

If one of the GroupLens GetPredictionProperty functions is called and the item is not in the buffer, a fetch for that single item is automatically performed. If the application only needs one or two predictions for each interaction with the user, the predictions may be accessed one-at-a-time. Many applications require a batch of 100 or more predictions for each interaction with the user. These applications are much faster if they use pre-fetching.

The Top N cache is similar to the prediction cache. You can access item names and properties of the top N items by using calls to GroupLens₋₋ GetTopNItemName and the GroupLens₋₋ GetTopNProperty functions, respectively. The cache can be filled by a call to GroupLens₋₋ FetchTopN, improving performance for Top N lists with more than two or three items.

Ratings are placed in a rating buffer one at a time. The GroupLens₋₋ FlushRatings function is provided to allow an explicit flush. Flushing often reduces the risk of lost ratings in case the computer crashes, and makes ratings available to other users faster, but slows the performance of the application. In most applications, flushing after every logical group of ratings is a satisfactory balance between reliability and performance. The API may choose to flush at other times, for memory management or performance purposes. The API typically flushes the rating buffer when GroupLens₋₋ ClosePartition is called.

Name Server Location The API can get the network location of the prediction information system name server 174 in either of two ways. The first method is to have two environment variables set: GL₋₋ NSHOST with the name of the name server host, and GL₋₋ NSPORT with name server port number. The other method of specifying the name server location is to use a call to GroupLens₋₋ SetNameServer. If neither method is used, the API will try to find the name server at host "localhost" and port 9000.

Return Values

The values returned by prediction information system 140 API functions depend on the type of function. The following are four categories that all API functions fit into:

Boolean functions. The primary purpose of these functions is to return True or False. If there is an error that prevents the function from accurately computing the correct value to return, it will return GL₋₋ FAILURE (-1). Example: GroupLens₋₋ IsGroupLensPartition.

General Procedures. The primary purpose of these functions is to perform a task. The return value indicates whether the task was successfully completed. These functions return GL₋₋ SUCCESS (1) if the function completed successfully and GL₋₋ FAILURE (-1) if there was an error. Example: GroupLens₋₋ FlushRatings.

Procedures Retrieving Item Information. These are procedures that get item property information. They are the same as general procedures except that they return GL₋₋ NOTFOUND (0) if the item is not in the prediction information system database 166, or the requested property value is not available. Example: GroupLens₋₋ GetPredictionPropertyInt.

Functions returning identifiers. The purpose of these functions is to return an integer identifier. Valid identifiers are zero or greater. These functions return a non-negative integer if successful and GL₋₋ FAILURE (-1) if not successful. Example:

GroupLens₋₋ GetPropertyID.

Error Messages

Error messages generated by the prediction information system 140 API are accessed using the GroupLens₋₋ GetErrorMsg function. Error codes may are accessed with the GroupLens₋₋ GetErrorNumber function. A return value of GL₋₋ FAILURE from a prediction information system 140 API function indicates that there may be an error message and error code available.

Thread Contexts

Since the prediction information system 140 API must operate as part of a multithreaded application, all API functions are thread-safe. Context information for a thread is stored in an internal structure called a thread context. Any application operating in a multithreaded environment must create a thread context at the beginning of each function and delete it before exiting the function. Threads are created and deleted using the GroupLens₋₋ CreateThreadContext and GroupLens₋₋ DeleteThreadContext functions, respectively. Applications that are single threaded do not need to call these functions.

Types

The enum type in Table 3 specifies the property type which is the use for the property.

                  TABLE 3                                                          ______________________________________                                         typedef enum {                                                                 GL.sub.-- RATING PROP,                                                         GL.sub.-- PRED.sub.-- PROP,                                                    GL.sub.-- REGISTER.sub.-- PROP,                                                GL.sub.-- LOGIN.sub.-- PROP,                                                   GL.sub.-- GENERAL.sub.-- PROP,                                                 GL.sub.-- TOPN.sub.-- PROP                                                     } GroupLens.sub.-- PropertyType ;                                              ______________________________________                                    

The enum type in Table 4 specifies the value type which is the type of value associated with a property. For example, GL₋₋ PRED is a prediction property (GL₋₋ PRED₋₋ PROP) that has a floating point value (GL₋₋ FLOAT).

                  TABLE 4                                                          ______________________________________                                         typedef enum {                                                                 GL.sub.-- NOVALUE,                                                             GL.sub.-- STRING,                                                              GL.sub.-- INTEGER,                                                             GL.sub.-- FLOAT                                                                }GroupLens.sub.-- ValueType ;                                                  ______________________________________                                    

Constants

The following are values returned by prediction information system 140 API functions.

True (1)

False (0)

Return values from Boolean prediction information system 140 API functions. If either of these values is returned, the function completed successfully.

GL₋₋ SUCCESS (1)

A return value from some prediction information system 140 API functions. Indicates that the function completed successfully.

GL₋₋ FAILURE (-1)

A return value from all prediction information system 140 API functions. Indicates that the function has failed.

GL₋₋ NOTFOUND (0)

A return value from the GroupLens₋₋ GetPredictionProperty and GroupLens₋₋ GetTopNProperty functions indicating that the function completed successfully but the item referenced is not in the database, or the property referenced is not available.

The following constants can be used to declare string buffers that will be large enough to handle any value returned by the associated function(s). These sizes include room for a terminating null.

GL₋₋ PREDSTRINGSIZE (13)

The buffer size required for a display string returned by GroupLens₋₋ GetDisplayString.

GL₋₋ MAXPROPERTYNAMELEN (32)

The buffer size required for a property name returned by GroupLens₋₋ GetPropertyName.

GL₋₋ MAXPROPERTYDESCLEN (256)

The maximum length of a property description.

GL₋₋ MAXPROPERTYVALUELEN (512)

The maximum length of a string property value.

GL₋₋ MAXITEMNAMELEN (128)

The maximum length of an item name.

GL₋₋ MAXPARTITIONNAMELEN (128)

The maximum length of a partition name.

GL₋₋ MAXUSERLEN (64)

The maximum length of a user ID.

GL₋₋ MAXPASSWORDLEN (64)

The maximum length of a password.

GL₋₋ MAXUSERPARTITIONS (50)

The maximum number of open partition handles in a thread.

Developing a Prediction Information System Application

In this section we provide an overview of what is needed to incorporate prediction information system technology into a client application. The API is designed to be easy to use and require as little understanding of the underlying prediction information system technology as possible. The programming described in this section will be sufficient for most client applications. Additional functions, which are discussed only in the Function Reference section, are provided for some additional development needs.

Using prediction information system 140 API functions requires that an appropriate library is added to the application's list of link libraries. In addition, a GroupLens.h file must be included in each module using API function calls. Also, the function calls themselves must be added to the application code.

Some key rules for creating a function using the prediction information system 140 API for single and multi-threaded applications are as follows.

If the application is multithreaded, the first prediction information system 140 function call must be to GroupLens₋₋ CreateThreadContext and the last function call, along any return path, must be GroupLens₋₋ DeleteThreadContext. If the application is single threaded, neither function call is required, but including them will not do any harm. The application must open one or more partitions using the GroupLens₋₋ OpenPartition function. The GroupLens₋₋ ClosePartition must be called prior to returning from the function.

The following in Table 5 are pseudocode examples of three functions: one that gets the Top N items for the user in a partition, one that gets predictions for a pre-defined set of items, and one that sends ratings to the prediction information system server 142. Actual `C.` language examples are provided in the Function Reference section.

                  TABLE 5                                                          ______________________________________                                         TopNFunction                                                                   GroupLens.sub.-- CreateThreadContext                                           GroupLens.sub.-- OpenPartition                                                 GroupLens.sub.-- FetchTopN                                                     for each of the items retrieved:                                               GroupLens.sub.-- GetTopNItemName                                               GroupLens.sub.-- GetTopNProperty                                               Use the prediction as desired                                                  GroupLens.sub.-- ClosePartition                                                GroupLens.sub.-- DeleteThreadContext                                           }                                                                              GetPredictionsFunction                                                         {                                                                              GroupLens.sub.-- CreateThreadContext                                           GroupLens.sub.-- OpenPartition                                                 for each item:                                                                 GroupLens.sub.-- AddItemToPredictionFetchList                                  GroupLens.sub.-- FetchPredictions                                              for each of the items retrieved:                                               GroupLens.sub.-- GetPredictionProperty                                         Use the prediction as desired                                                  GroupLens.sub.-- ClosePartition                                                GroupLens.sub.-- DeleteThreadContext                                           }                                                                              RatingFunction                                                                 {                                                                              GroupLens.sub.-- CreateThreadContext                                           GroupLens.sub.-- OpenPartition                                                 for each item:                                                                 GroupLens.sub.-- SetRatingProperty                                             GroupLens.sub.-- FlushRatings                                                  GroupLens.sub.-- ClosePartition                                                GroupLens.sub.-- DeleteThreadContext                                           }                                                                              ______________________________________                                    

Function Summaries

Partition functions

GL₋₋ HANDLE GroupLens₋₋ OpenPartition;

(char *PartitionName, char *User, char *Password)

Opens a prediction information system 142 partition for the specified user.

void GroupLens₋₋ ClosePartition (GL₋₋ HANDLE hpartition);

Closes the specified partition for the user for which it had been opened.

Server functions

int GroupLens₋₋ ChangePassword

(char *User, char *OldPassword, char *NewPassword);

Changes the password for the specified user.

int GroupLens₋₋ IsGroupLensPartition(char *PartitionName);

Used to determine if the specified partition is handled by the prediction information system server 142.

int GroupLens₋₋ Register (char *User, char *Password);

Registers the specified user with the prediction information system server 142.

int GroupLens₋₋ SetNameServer(char *Host, int Port);

Changes the prediction information system name server 174 with which the client application communicates.

Property information functions

int GroupLens₋₋ GetPropertyDescription

(int PropertyID, char *Buffer, unsigned int BufferSize);

Gets the property description of the specified property.

int GroupLens₋₋ GetPropertyID(char *PropertyName);

Gets the numeric ID associated with a property name.

int GroupLens₋₋ GetPropertyName(int PropertyID, char *Buffer, unsigned int BufferSize);

Gets the property name associated with a property ID.

GroupLens₋₋ PropertyType GroupLens₋₋ GetPropertyType(int PropertyID);

Gets the property type of the specified property.

The property type is what the property is used for, not what type the value is.

GroupLens₋₋ ValueType GroupLens₋₋ GetValueType(int PropertyID);

Gets the value type of the specified property.

Rating functions

int GroupLens₋₋ FlushRatings(GL₋₋ HANDLE hpartition);

Flushes the rating buffer, sending all rating information for the specified partition handle to the prediction information system server 142.

int GroupLens₋₋ SetRatingPropertyInt

(GL₋₋ HANDLE hpartition, char *ItemName, int PropertyID, int Value);

int GroupLens₋₋ SetRatingPropertyFloat

(GL₋₋ HANDLE hpartition, char *ItemName, int PropertyID, float Value);

int GroupLens₋₋ SetRatingPropertyString

(GL₋₋ HANDLE hpartition, char *ItemName, int PropertyID, char *Value);

Sets a rating property for a specified item for the specified partition handle.

Prediction functions

int GroupLens₋₋ AddItemToPredictionFetchList

(GL₋₋ HANDLE hPartition, char *ItemName);

Used to build the list of items for which predictions will be retrieved from the prediction information system server 142.

int GroupLens₋₋ FetchPredictions(GL₋₋ HANDLE hpartition);

Fetches predictions for the items in the fetch list.

int GroupLens₋₋ GetPredictionPropertyInt

(GL₋₋ HANDLE hpartition, char *ItemName, int PropertyID, int *Value);

int GroupLens₋₋ GetPredictionPropertyFloat

(GL₋₋ HANDLE hpartition, char *ItemName, int PropertyID, float *Value);

int GroupLens GetPredictionPropertyString(GL₋₋ HANDLE hpartition, char *ItemName, int PropertyID, char *Buffer, unsigned int BufferSize);

Gets a property value for a specified item within the specified partition handle from the prediction cache.

Top N functions

int GroupLens₋₋ FetchTopN(GL₋₋ HANDLE hpartition, int FromRank, int ThruRank);

Fetches a segment of the Top N list for the specified partition handle, from one rank to another.

int GroupLens₋₋ GetTopNItemName(GL₋₋ HANDLE hpartition, int Rank, char *Buffer, unsigned int BufferSize);

Gets the item name for an item in the Top N list for the specified open partition.

int GroupLens₋₋ GetTopNPropertyInt

(GL₋₋ HANDLE hpartition, int Rank, int PropertyID, int *Value);

int GroupLens₋₋ GetTopNPropertyFloat

(GL₋₋ HANDLE hPartition, int Rank, int PropertyID, float *Value);

int GroupLens₋₋ GetTopNPropertyString

(GL₋₋ HANDLE hpartition, int Rank, int PropertyID, char *Buffer, unsigned int BufferSize);

Gets a property value for an item in the Top N cache for the specified partition.

Message functions

int GroupLens₋₋ GetErrorMsg(char *MsgBuffer, unsigned int BufferSize);

Accessor function for any error messages recorded by prediction information system 140 API functions.

int GroupLens₋₋ GetErrorNum(void);

Returns the numeric code for the last error recorded by the API functions.

Multithread functions

int GroupLens₋₋ CreateThreadContext();

Creates a context for the current thread.

void GroupLens₋₋ DeleteThreadContext();

Deletes the context for the current thread.

Function Reference

Functions in this section are listed alphabetically. The constants GOODGROUP, GOODHOST, GOODPORT, and ANITEMNAME are used in examples to represent appropriate values for a fictitious prediction system.

GroupLens AddItemToPredictionFetchList

    ______________________________________                                         int GroupLens.sub.-- AddItemToPredictionFetchList                              (GL.sub.-- HANDLE hPartition, char *ItemName) ;                                hPartition The handle of an open partition.                                    ItemName   The name of the specific item to be                                            added to the fetch list. Often, this                                           will be a string ID for the item.                                   ______________________________________                                    

Used to build the list of items for which predictions will be retrieved from the prediction information system server 142.

Return value

GL₋₋ SUCCESS if successful at adding the item, otherwise GL₋₋ FAILURE.

Remarks

To fetch the prediction data for items in the list, call GroupLens₋₋ FetchPredictions.

Example code shown in Table

                  TABLE 6                                                          ______________________________________                                         void Demo.sub.-- GroupLens.sub.-- AddItemToPredictionFetchList()               char ItemNames[4][GL.sub.-- MAXITEMNAMELEN+1] ;                                float Prediction, ConfLow, ConfHigh ;                                          char ErrorMsg[256] ;                                                           GL.sub.-- HANDLE hPartition ;                                                  int i, rc ;                                                                    GroupLens.sub.-- CreateThreadContext() ;                                       hPartition = GroupLens.sub.-- OpenPartition("Restaurants", "Eater10",          "mypass") ;                                                                    if ( hPartition == -1 ) {                                                      GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("Unable to open partition `Restaurants` for Eater10.                    Error msg = `%s`\n", ErrorMsg) ;                                     return ;                                                                       }                                                                              strcpy(ItemNames[0], "Cafe10") ;                                               strcpy(ItemNames[1], "Cafe20") ;                                               strcpy(ItemNames[2], "Cafe30") ;                                               strcpy(ItemNames[3], "Cafe40") ;                                               /* Add items to the fetch list. */                                             for ( i = 0; i < 4; i++) {                                                     rc = GroupLens.sub.-- AddItemToPredictionFetchList(hPartition,                        ItemNames[i]) ;                                                         if ( rc != GL.sub.-- SUCCESS ) {                                                      GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("%s\n", ErrorMsg) ;                                           return ;                                                                       }                                                                       }                                                                              /* Do the fetch. */                                                            rc = GroupLens.sub.-- FetchPredictions(hPartition) ;                           if ( rc != GL.sub.-- SUCCESS ) {                                               GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("%s\n", ErrorMsg) ;                                           return ;                                                                       }                                                                              /* Display rating data for each item. */                                       for ( i = 0; i < 4; i++) {                                                     GroupLens.sub.-- GetPredictionPropertyFloat(hPartition,                               ItemNames[i], GL.sub.-- PRED, &Prediction) ;                            GroupLens.sub.-- GetPredictionPropertyFloat(hPartition,                               ItemNames[i], GL.sub.-- CONFLOW, &ConfLow) ;                            GroupLens.sub.-- GetPredictionPropertyFloat(hPartition,                               ItemNames[i], GL.sub.-- CONFHIGH, &ConfHigh) ;                          printf("%20s %4.2f (%4.2f, %4.2f)\n", ItemNames[i],                  Prediction, ConfLow, ConfHigh) ;                                               }                                                                              printf("\n") ;                                                       GroupLens.sub.-- ClosePartition(hPartition) ;                                  GroupLens.sub.-- DeleteThreadContext() ;                                       }                                                                              ______________________________________                                    

GroupLens ChangePassword

    ______________________________________                                         int GroupLens.sub.-- ChangePassword                                            (char *User, char *OldPassword, char                                           *NewPassword) ;                                                                User       The name of the user for whom to                                               change the password.                                                OldPassword                                                                               The current password.                                               NewPassword                                                                               The new password.                                                   ______________________________________                                    

Changes the password for the specified user.

Return value

GL₋₋ SUCCESS if the password change is successful, GL₋₋ FAILURE otherwise.

Remarks

OldPassword must match the password on record for the change to occur.

Example

See example for GroupLens₋₋ SetNameServer.

GroupLens ClosePartition

    ______________________________________                                         void GroupLens.sub.-- ClosePartition (GL.sub.-- HANDLE                         hPartition) ;                                                                  hPartition The handle of an open partition.                                    ______________________________________                                    

Closes the specified partition for the user for which it had been opened.

Return value

None.

Remarks

Example

See example for GroupLens₋₋ AddItemToPredictionFetchList.

GroupLens CreateThreadContext

int GroupLens₋₋ CreateThreadContext();

Creates a context for the current thread.

Return value

GL₋₋ SUCCESS if creation of the thread context is successful, GL₋₋ FAILURE otherwise.

Remarks

In a multithreaded application, this function must be the first prediction information system 140 function called in a thread, and GroupLens₋₋ DeleteThreadContext must be the last prediction information system 140 function called. Neither function is required for single threaded applications.

Example

See example for GroupLens₋₋ AddItemToPredictionFetchList

GroupLens DeleteThreadContext

void GroupLens₋₋ DeleteThreadContext();

Deletes the context for the current thread.

Return value

None.

Remarks

In a multithreaded application, this function must be the last prediction information system 140 function called in a thread, and GroupLens₋₋ CreateThreadContext must be the first prediction information system 140 function called. Neither function is required for single threaded applications.

Example

See example for GroupLens₋₋ AddItemToPredictionFetchList. GroupLens FetchPredictions

    ______________________________________                                         int GroupLens.sub.-- FetchPredictions(GL.sub.-- HANDLE                         hPartition) ;                                                                  hPartition The handle of an open partition.                                    ______________________________________                                    

Fetches predictions for the items in the prediction fetch list.

Return value

GL₋₋ SUCCESS if the predictions were successfully received, otherwise GL₋₋ FAILURE.

Remarks

While the predictions are retrieved into the prediction cache, when necessary, by one of the GroupLens₋₋ GetPredictionProperty functions, getting predictions for one item at a time is inefficient in terms of both network bandwidth and prediction information system server 142 processing. Placing items into the fetch list and then retrieving predictions in a batch using GroupLens₋₋ FetchPredictions is much more efficient.

Example

See example for GroupLens₋₋ AddItemToPredictionFetchList. GroupLens FetchTopN

    ______________________________________                                         int GroupLens.sub.-- FetchTopN(GL.sub.-- HANDLE hPartition,                    int FromRank, int ThruRank) ;                                                  hPartition A handle to an open partition.                                      FromRank   The rank of the first item to be                                               fetched.                                                            ThruRank   The rank of the last item to be                                                fetched.                                                            ______________________________________                                    

Fetches a segment of the Top N list for the specified partition handle, from one rank to another.

Return value

GL₋₋ SUCCESS if the segment of the Top N list, or any subset of it, was successfully received, otherwise GL₋₋ FAILURE.

Remarks

Ranks are 1-based. Therefore, the top 10 items in a partition would be retrieved using FromRank=1 and ToRank=10.

If fewer than ThruRank items have been rated for the group, the list returned may contain fewer than ThruRank-FromRank+1 items.

While the items are retrieved into the Top N cache, when necessary, by the GroupLens GetTopNItemName and GroupLens₋₋ GetTopNProperty functions, retrieving items one at a time this way is much less efficient than retrieving the entire list using GroupLens₋₋ FetchTopN in terms of both network bandwidth and prediction information system server 142 processing.

Example

See example for GroupLens₋₋ GetTopNItemName.

GroupLens FlushRatings

    ______________________________________                                         int GroupLens.sub.-- FlushRatings(GL.sub.-- HANDLE hPartition)                 hPartition A handle to an open partition.                                      ______________________________________                                    

Flushes the rating buffer for the partition, sending all rating information to the prediction information system server 142.

Return value

GL₋₋ SUCCESS if the flush is successful, otherwiseGL₋₋ FAILURE.

Remarks

The current implementation allows flushing using this command or the GroupLens₋₋ ClosePartition command. In later versions, the buffer may be automatically, periodically flushed to optimize use of system resources.

Example

See example for GroupLens₋₋ SetRatingProperty.

GroupLens GetErrorMsg

    ______________________________________                                         int GroupLens.sub.-- GetErrorMsg(char *MsgBuffer,                              unsigned int BufferSize) ;                                                     MsgBuffer  The buffer in which to return the                                              message.                                                            BufferSize The size of the buffer.                                             ______________________________________                                    

Accessor function for any error messages recorded by prediction information system 140 API functions.

Return value

GL₋₋ SUCCESS if successful, GL₋₋ FAILURE otherwise.

Remarks

Example

See example for GroupLens₋₋ AddItemToPredictionFetchList.

GroupLens GetPredictionProperty

    ______________________________________                                         int GroupLens.sub.-- GetPredictionPropertyInt                                  (GL.sub.-- HANDLE hPartition, char *ItemName, int                              PropertyID, int *Value) ;                                                      int GroupLens.sub.-- GetPredictionPropertyFloat                                (GL.sub.-- HANDLE hPartition, char *ItemName, int                              PropertyID, float *Value) ;                                                    int GroupLens.sub.-- GetPredictionPropertyString                               (GL.sub.-- HANDLE hPartition, char *ItemName, int                              PropertyID,                                                                    char *Buffer, unsigned int BufferSize) ;                                       hPartition A handle to an open partition.                                      ItemName   The name of the specific item for                                              which a property is being set.                                      PropertyID A numeric property ID. You will                                                usually use the named constants for                                            the prediction information system 140                                          properties.                                                         Value      The value to be associated with the                                            property. Must be allocated by the                                             caller. This value is strongly typed,                                          hence there are three functions.                                    Buffer     The buffer in which to return a string                                         value. Used instead of Value in                                                GroupLens.sub.-- GetPredictionPropertyString.                       BufferSize The size of the buffer. Used                                                   only in                                                                        GroupLens.sub.-- GetPredictionPropertyString.                       ______________________________________                                    

Gets a property value for a specified item within the specified partition from the prediction buffer.

Return value

GL₋₋ SUCCESS if successful at getting the property value, GL₋₋ NOTFOUND if the specified item does not exist in the prediction information system 166 database, or GL₋₋ FAILURE if there was an error. The property value is returned in the Value or Buffer parameter.

Remarks

For a string, the argument should be a string of at least size GL₋₋ MAXPROPERTYVALUELEN. The value type of the property must agree with the function used. You can find the value type by calling GroupLens₋₋ GetPropertyValueType for the PropertyID.

Example

See example for GroupLens₋₋ AddItemToPredictionFetchList.

GroupLens GetPropertyDescription

    ______________________________________                                         int GroupLens.sub.-- GetPropertyDescription                                    (int PropertyID, char *Buffer, unsigned int                                    BufferSize) ;                                                                  PropertyID A numeric property ID.                                              Buffer     A buffer in which the description                                              string will be returned.                                            BufferSize The size of the buffer.                                             ______________________________________                                    

Gets the property description of the specified property.

Return value

GL₋₋ SUCCESS if PropertyID is valid, otherwise GL₋₋ FAILURE.

Remarks

The property description will be no longer than GL₋₋ MAXPROPERTYDESCLEN in length. Therefore, the buffer should be at least GL₋₋ MAXPROPERTYDESCLEN+1 in length.

Example

See example for GroupLens₋₋ GetPropertyID.

GroupLens GetPropertyID

    ______________________________________                                         int GroupLens.sub.-- GetPropertyID                                             (char *PropertyName) ;                                                         PropertyName                                                                              A string, beginning with a colon,                                              specifying the name of a property.                                             See the list of properties in TABLE 2.                              ______________________________________                                    

Gets the numeric ID associated with a property name.

Return value

The integer ID if the property is found, otherwise GL₋₋ FAILURE (-1).

Remarks

Example code shown in Table

                  TABLE 7                                                          ______________________________________                                         void Demo.sub.-- GroupLens.sub.-- GetPropertyID( )                             int PropertyID ;                                                               char PropName[GL.sub.-- MAXPROPERTYNAMELEN] ;                                  char PropDesc[GL.sub.-- MAXPROPERTYDESCLEN] ;                                  GroupLens.sub.-- PropertyType PropType ;                                       GroupLens.sub.-- ValueType ValueType ;                                         PropertyID = GroupLens.sub.-- GetPropertyID("GL.sub.-- PRED") ;                if ( PropertyID == -1 ) (                                                      printf("GL.sub.-- PRED is not a valid property name.") ;                       return ;                                                                       }                                                                              GroupLens.sub.-- GetPropertyName(PropertyID, PropName,                         GL.sub.-- MAXPROPERTYNAMELEN) ;                                                GroupLens.sub.-- GetPropertyDescription(PropertyID, PropDesc,                  GL.sub.-- MAXPROPERTYDESCLEN) ;                                                PropType = GroupLens.sub.--l GetPropertyType(PropertyID) ;                     ValueType = GroupLens.sub.-- GetValueType(PropertyID) ;                        if ( (strlen(PropName) == 0) | | (strlen(PropDesc) ==        0) | |                                                       (PropType == -1) | | (ValueType == -1) ) {                   printf("%d is not a valid property ID.", PropertyID) ;                         }                                                                              else {                                                                         printf("%s: Property type = %d, Value type = %d, Description                   = `%s`/n/n", PropName, PropType, ValueType, PropDesc) ;                        }                                                                              printf("/n") ;                                                                 }                                                                              ______________________________________                                    

GroupLens GetPropertyName

    ______________________________________                                         int GroupLens.sub.-- GetPropertyName(int PropertyID,                           char *Buffer, unsigned int BufferSize) ;                                       PropertyID A numeric property ID.                                              Buffer     A buffer in which the property name                                            will be returned.                                                   BufferSize The size of the buffer.                                             ______________________________________                                    

Gets the property name associated with a property ID.

Return value

GL₋₋ SUCCESS if PropertyID is valid, otherwise GL₋₋ FAILURE.

Remarks

The property name will be no longer than GL₋₋ MAXPROPERTYNAMELEN. Therefore, the buffer should be at least GL₋₋ MAXPROPERTYNAMELEN+1 in length.

Example

See example for GroupLens₋₋ GetPropertyID.

GroupLens GetPropertyType

    ______________________________________                                         GroupLens.sub.-- PropertyType GroupLens.sub.-- GetPropertyType(int             PropertyID) ;                                                                  PropertyID      A numeric property ID.                                         ______________________________________                                    

Gets the property type of the specified property.

Return value

An value of enum type GroupLens₋₋ PropertyType specifying the type if the property ID is valid, otherwise GL₋₋ FAILURE.

Remarks

Permissible property IDs are shown in Table 2.

Example

See example for GroupLens₋₋ GetPropertyID.

GroupLens GetTopNItemName

    ______________________________________                                         int GroupLens.sub.-- GetTopNItemName(GL.sub.-- HANDLE                          hPartition, int Rank, char *Buffer, unsigned int                               BufferSize) ;                                                                  hPartition The handle of an open partition.                                    Rank       The one-based rank of the item in the                                          Top N list.                                                         Buffer     The buffer in which to return the item                                         name.                                                               BufferSize The size of the buffer.                                             ______________________________________                                    

Gets the item name for an item in the Top N list for the specified partition.

Return value

GL₋₋ SUCCESS if the item name is successfully retrieved, otherwise GL₋₋ FAILURE.

Remarks

The ItemName buffer should be at least GL₋₋ MAXITEMNAMELEN characters.

The rank is one-based, hence ranks for a Top 10 list will be 1 to 10.

Example code shown in Table

                  TABLE 8                                                          ______________________________________                                         void Demo.sub.-- GroupLens.sub.-- GetTopNItemName()                            float Pred, ConfLow, ConfHigh ;                                                char ItemName[GL.sub.-- MAXITEMNAMELEN] ;                                      GL.sub.-- HANDLE hPartition ;                                                  char ErrorMsg[256] ;                                                           int rc, j ;                                                                    GroupLens.sub.-- CreateThreadContext() ;                                       hPartition = GroupLens.sub.-- OpenPartition("Restaurants", "Eater10",          "mypass") ;                                                                    if ( hPartition == -1 ) {                                                      GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("Unable to open partition `Restaurants` for Eater10.                    Error msg = `%s`\n", ErrorMsg) ;                                     return ;                                                                       }                                                                              printf("Top 20 `Restaurants` for Eater10:\n") ;                      GroupLens.sub.-- FetchTopN(hPartition, 1, 20) ;                                for ( j = 1; j <= 20; j++ ) {                                                  rc = GroupLens.sub.-- GetTopNItemName(hPartition, j, ItemName,                        GL.sub.-- MAXITEMNAMELEN) ;                                             if ( rc != GL.sub.-- SUCCESS ) {                                                      GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("Error getting Top 20 restaurants: `%s`\n",            ErrorMsg) ;                                                                           break ;                                                                        }                                                                       else if ( ItemName[0] == 0 ) {                                                        printf("Item #%d is not in the Top 20 list.\n", j) ;                 break ;                                                                        }                                                                       GroupLens.sub.-- GetTopNPropertyFloat(hPartition, j, GL.sub.-- PRED,                  &Pred) ;                                                                GroupLens.sub.-- GetTopNPropertyFloat(hPartition, j,                                  GL.sub.-- CONFLOW, &ConfLow) ;                                          GroupLens.sub.-- GetTopNPropertyFloat(hPartition, j,                                  GL.sub.-- CONFHIGH, &ConfHigh) ;                                        printf("Item #%d; ItemName=%s; Prediction=%4.2f; Conf.                         Low=%4.2f; Conf. High=%4.2f\n", j, ItemName, Pred, ConfLow,          ConfHigh) ;                                                                    }                                                                              printf("\n") ;                                                       GroupLens.sub.-- ClosePartition(hPartition) ;                                  GroupLens.sub.-- DeleteThreadContext() ;                                       }                                                                              ______________________________________                                    

GroupLens GetTopNProperty

    ______________________________________                                         int GroupLens.sub.-- GetTopNPropertyInt                                        (GL.sub.-- HANDLE hPartition, int Rank, int PropertyID,                        int *Value) ;                                                                  int GroupLens.sub.-- GetTopNPropertyFloat                                      (GL.sub.-- HANDLE hPartition, int Rank, int PropertyID,                        float *Value) ;                                                                int GroupLens.sub.-- GetTopNPropertyString                                     (GL.sub.-- HANDLE hPartition, int Rank, int PropertyID,                        char *Buffer, unsigned int BufferSize) ;                                       hPartition                                                                               The handle of an open partition.                                     Rank      The one-based rank of the item in the                                          Top N list.                                                          PropertyID                                                                               A numeric property ID. You will                                                usually use the named constants for                                            the prediction information system 140                                          properties.                                                          Value     The value to be associated with the                                            property. Must be allocated by the                                             caller. This value is strongly typed,                                          hence there are three functions.                                     Buffer    The buffer in which to return a string                                         value. Used instead of Value in                                                GroupLens.sub.-- GetTopNPropertyString.                              BufferSize                                                                               The size of the buffer. Used                                                   only in                                                                        GroupLens.sub.-- GetTopNPropertyString.                              ______________________________________                                    

Gets a property value for an item in the Top N cache for the specified partition.

Return value

GL₋₋ SUCCESS if successful at getting the property value, GL₋₋ NOTFOUND if there is no item at the specified Rank, or GL₋₋ FAILURE if there was an error. The property value is returned in the Value parameter.

Remarks

The value type of the property must agree with the function used. For a string, the argument should just be a string of at least size GL₋₋ MAXSTRINGVALUELEN. You can find the value type by calling GroupLens₋₋ GetPropertyValueType for the PropertyID.

Example

See example for GroupLens₋₋ GetTopNItemName. GroupLens GetValueType

    ______________________________________                                         GroupLens.sub.-- ValueType GroupLens.sub.-- GetValueType(int                   PropertyID) ;                                                                  PropertyID      A numeric property ID.                                         ______________________________________                                    

Gets the value type of the specified property.

Return value

An value of enum type GroupLens₋₋ ValueType specifying the value type if the property ID is valid, otherwise GL₋₋ FAILURE.

Remarks

Permissible property IDs are discussed in Table 2.

Example

See example for GroupLens₋₋ GetPropertyID.

GroupLens IsGroupLensPartition

    ______________________________________                                         int GroupLens.sub.-- IsGroupLensPartition (char                                *PartitionName) ;                                                              PartitionName The name of a prediction                                         information system 140 partition.                                              ______________________________________                                    

Used to determine if the specified partition is handled by the prediction information system server 142.

Return value

True if the specified partition is handled by the prediction information system server 142, False if not, and GL₋₋ FAILURE if there was an error that prevented the function from determining whether the partition is handled by the prediction information system server 142.

Remarks

Some applications will only apply prediction information system 140 functions to some of the available partitions. This function is useful for determining which partitions are handled by the prediction information system 140 and which are not.

Example code shown in Table 9

The following example prints out the name of the partition. If the partition is handled by prediction information system 140, "(This is a prediction information system partition)" is appended.

                  TABLE 9                                                          ______________________________________                                         void Demo.sub.-- GroupLens.sub.-- IsGroupLensGroup()                           char PartitionName[GL.sub.-- MAXPARTITIONNAMELEN] ;                            char ErrorMsg[256] ;                                                           int rc ;                                                                       GroupLens.sub.-- CreateThreadContext() ;                                       strcpy(PartitionName, "Restaurants") ;                                         rc = GroupLens.sub.-- IsGroupLensPartition(PartitionName) ;                    if ( rc == True ) {                                                            printf("%s (This is a prediction information system                            partition)\n", PartitionName);                                       }                                                                              else if ( rc == GL.sub.-- FAILURE ) {                                          GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("Error testing GroupLens.sub.-- IsGroupLensPartition:                   `%s`\n", ErrorMsg);                                                  }                                                                              else {                                                                         printf("%s", PartitionName);                                                   }                                                                              printf("\n") ;                                                       GroupLens.sub.-- DeleteThreadContext() ;                                       }                                                                              ______________________________________                                    

GroupLens OpenPartition

    ______________________________________                                         GL.sub.-- HANDLE GroupLens.sub.-- OpenPartition(char                           *PartitionName, char *User,                                                    char *Password) ;                                                              PartitionName                                                                               The name of a prediction                                                       information system 140 partition.                                 User         The user ID of the user for whom the                                           partition is being opened.                                        Password     The password of the user for whom the                                          partition is being opened.                                        ______________________________________                                    

Opens a prediction information system 140 partition for the specified user.

Return value

The handle of the opened partition, or GL₋₋ FAILURE if the open failed.

Remarks

This function must be called prior to using any function that takes a partition handle (GL₋₋ HANDLE) as a parameter.

A partition handle is specific to a user and partition. Hence, an operation on a partition handle deals with ratings or predictions specific to that user and partition. Cross-user and cross-partition operations are performed by the application getting multiple handles, performing separate operations on each handle, and merging the results as desired. A maximum of GL₋₋ MAXUSERPARTITIONS partition handles may be open in a thread at one time.

Example

See example for GroupLens₋₋ AddItemToPredictionFetchList.

GroupLens Register

    ______________________________________                                         int GroupLens.sub.-- Register (char *User, char                                *Password) ;                                                                   User         The name of the user to register.                                 OldPassword  The password of the user in the                                                partition.                                                        ______________________________________                                    

Registers the specified user with the prediction information system server 142.

Return value

GL₋₋ SUCCESS if registration is successful, otherwise GL₋₋ FAILURE.

Remarks

Each user only needs to be registered once. Registering a user more than once doesn't hurt anything, but takes a little time.

Example

See example for GroupLens₋₋ SetNameServer.

GroupLens SetNameServer

    ______________________________________                                         int GroupLens.sub.-- SetNameServer(char *Host, int Port) ;                     Host        The host name of the prediction                                                information system server 142                                      Port        The port number of the prediction                                              information system server 142                                      ______________________________________                                    

Changes the prediction information system server 142 with which the client application communicates.

Return value

GL₋₋ SUCCESS if the change is successful, otherwise GL₋₋ FAILURE.

Remarks

The host name and port can either be read from the environment variables GL₋₋ NSHOST and GL₋₋ NSPORT, or set using this function. Both mechanisms set the name server globally. The settings remain in effect until changed with this function.

Example code shown in Table 10

                  TABLE 10                                                         ______________________________________                                         void Demo.sub.-- GroupLens.sub.-- SetNameServer()                              int rc ;                                                                       char ErrorMsg[256] ;                                                           GroupLens.sub.-- CreateThreadContext() ;                                       rc = GroupLens.sub.-- SetNameServer("augusta.netperceptions.com",                     9009) ;                                                                 if ( rc != GL.sub.-- SUCCESS ) {                                               GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("Unable to set server. Error msg = `%s`\n",                          ErrorMsg) ;                                                             return ;                                                                       }                                                                              /* Register the new user in the `Restaurants` partition. */                    rc = GroupLens.sub.-- Register("Eater10", "mypass") ;                          if ( rc == GL.sub.-- SUCCESS ) {                                               printf("Registration successful.\n") ;                               }                                                                              else {                                                                         GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("Unable to register. Error msg = `%s`\n",                            ErrorMsg) ;                                                             return ;                                                                       }                                                                              GroupLens.sub.-- ChangePassword("Eater10", "mypass", "mynewpass") ;            printf("\n") ;                                                       GroupLens.sub.-- DeleteThreadContext() ;                                       }                                                                              ______________________________________                                    

GroupLens SetRatingProperty

    ______________________________________                                         int GroupLens.sub.-- SetRatingPropertyInt                                      (GL.sub.-- HANDLE hPartition, char *ItemName, int                              PropertyID, int Value) ;                                                       int GroupLens.sub.-- SetRatingPropertyFloat                                    (GL.sub.-- HANDLE hPartition, char *ItemName, int                              PropertyID, float Value) ;                                                     int GroupLens.sub.-- SetRatingPropertyString                                   (GL.sub.-- HANDLE hPartition, char *ItemName, int                              PropertyID, char *Value) ;                                                     hPartition   The handle of an open partition.                                  ItemName     The name of the specific item for                                              which a property is being set. Often,                                          this will be a string ID for the item.                            PropertyID   A numeric property ID.                                            Value        The value to be associated with the                                            property.                                                         ______________________________________                                    

Sets a rating property for a specified item in a specified group.

Return value

GL₋₋ SUCCESS if successful in setting the rating, otherwise GL₋₋ FAILURE.

Remarks

Unlike with the GroupLens₋₋ GetPredictionProperty functions, the integer and float value parameters to these functions are not pointers.

Example code shown in Table 11

                  TABLE 11                                                         ______________________________________                                         void Demo.sub.-- GroupLens.sub.-- SetRatingProperty()                          float TotalTime ;                                                              int  glRating ;                                                                char Comments[] = "This is cool stuff." ;                                      GL.sub.-- HANDLE hPartition ;                                                  char ErrorMsg[256] ;                                                           int rc ;                                                                       GroupLens.sub.-- CreateThreadContext() ;                                       hPartition = GroupLens.sub.-- OpenPartition("Restaurants", "Eater10",          "mypass") ;                                                                    if ( hPartition < 0 ) {                                                        GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("Unable to open partition `Restaurants` for Eater10.                    Error msg = `%s`\n", ErrorMsg) ;                                     return ;                                                                       }                                                                              GroupLens.sub.-- SetRatingPropertyFloat(hPartition, "Cafe10",                  GL.sub.-- TIME, TotalTime) ;                                                   glRating = 1 ;                                                                 GroupLens.sub.-- SetRatingPropertyInt(hPartition, "Cafe10",                    GL.sub.-- RATING, glRating) ;                                                  GroupLens.sub.-- SetRatingPropertyString(hPartition, "Cafe10",                 GL.sub.-- TEXT, Comments) ;                                                    /* Note that the address operator & is not used for a                          * string. */                                                                   rc = GroupLens.sub.-- FlushRatings(hPartition) ;                               if ( rc == GL.sub.-- SUCCESS ) {                                               printf("Ratings flushed successfully!\n") ;                          }                                                                              else {                                                                         GroupLens.sub.-- GetErrorMsg(ErrorMsg, 256) ;                                  printf("Error flushing ratings. Error msg = `%s`\n",                        ErrorMsg) ;                                                             }                                                                              printf("\n") ;                                                       GroupLens.sub.-- ClosePartition(hPartition) ;                                  GroupLens.sub.-- DeleteThreadContext() ;                                       }                                                                              ______________________________________                                    

SUMMARY OF METHOD STEPS

The present invention can be summarized in reference to FIG. 14 which is a flowchart of steps 200-214 performed by the prediction information system 140 to operate an electronic rating broker 142 on a computer system 140 in order to provide prediction information to a user.

First items are presented 202 as information to the user on a display device. Subsequently, a particular implicit measure is obtained 204 from the user based on the items through an input device. An implicit rating is generated 206 as a function of the particular implicit measure. The particular implicit rating is submitted 208 to the rating broker. Subsequently, prediction results for other items are received 210 from the rating broker. These prediction results are then presented to the user as the prediction information on the display device.

The implicit measure preferably is derived from one or more criteria. For example, this criteria may be user time spent viewing a particular item, user time spent listening to a particular item, and/or user time spent sampling a particular item. In addition, the implicit measure may be derived based on subsequent actions taken. These subsequent actions taken, for example, could be: a user viewing details of a particular item after viewing only a title, saving a particular item, forwarding a particular item, saving a return address of a particular item, deleting a particular item, replying to a particular item, and/or printing a particular item.

In order to improve the accuracy of the implicit rating, one embodiment of the present invention derives the implicit rating as a function of several implicit measures of either the same type, different types or both. These implicit measures include at least the one originally obtained from the user.

In another embodiment of the present invention, one or more implicit ratings are generated as a function of the originally obtained implicit measure plus one or more additional implicit measures.

In the preferred embodiment the implicit rating is derived from the particular implicit measure using a receiver operating curve (ROC). It will be appreciated by those skilled in the art that other algorithms such as recall/precision-based algorithms could be used to map implicit measures to implicit ratings.

If an ROC is derived, then it preferably is derived from the items originally presented to the user, a signal to noise characterization, and several implicit measures (which includes the particular implicit measure originally obtained from the user). The signal to noise characterization can be derived from a set of explicit ratings previously obtained for the particular application domain. In addition, rating threshold values can be derived for converting several implicit measures to several implicit ratings from the ROC.

In order to verify that the predictions are good, a quality metric receiver operating curve (ROC) may be derived from a mapping between an implicit measure and an implicit rating. The mapping preferably is based on the items, a signal to noise characterization, and some predictions from a prediction engine. This prediction engine may be the ROC algorithm or another prediction algorithm. In some instances, several quality metric ROCs can be derived, each of which corresponds to a different mapping. If this is done, one of the mappings may be selected for subsequent use based on which of the several quality metric ROCs best fits a given set of criteria. In addition, the implicit ratings can be analyzed to determine whether they are better than a set of explicit ratings based on the quality metric ROC.

It is to be understood that even though numerous characteristics and advantages of various embodiments of the present invention have been set forth in the foregoing description, together with details of the structure and function of various embodiments of the invention, this disclosure is illustrative only, and changes may be made in detail, especially in matters of structure and arrangement of parts within the principles of the present invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed. For example, as previously noted the user interface device may be a visual display; however, a printer, an audio device, a olfactory device, a tactile device, or any combination of these user interface devices may be used to convey information to the user without departing from the scope and spirit of the present invention as claimed. Similarly, the input device may be a keyboard, a mouse, a trackball, a touch pad, a light pen, a joy stick, a touch screen, or any other mechanism which is capable of obtaining data input by the user without departing from the scope and spirit of the present invention as claimed. 

What is claimed is:
 1. A prediction information system for use between a user and a collaborative filtering electronic rating broker, comprising:(a) user interface means for presenting items as information to the user; (b) input means for receiving data input by the user; (c) processing means, operatively coupled to the user interface means and input means, for obtaining a particular implicit measure, generating an implicit rating as a function of the particular implicit measure, submitting the implicit rating to the collaborative filtering rating broker, receiving prediction results for other items from the collaborative filtering, rating broker, and presenting the prediction results to the user on the user interface means.
 2. The prediction information system of claim 1 wherein the processing means comprises means for obtaining the particular implicit measure from the user through the input means based on criteria selected from a group consisting of: user time spent viewing a particular item, user time spent listening to a particular item, and user time spent sampling a particular item.
 3. The prediction information system of claim 1 wherein the processing means comprises means for obtaining the particular implicit measure from a user through the input means based on subsequent actions taken, the subsequent actions taken being selected from a group consisting of: a user viewing details of a particular item after viewing only a title, saving a particular item, forwarding a particular item, saving a return address of a particular item, deleting a particular item, replying to a particular item, and printing a particular item.
 4. The prediction information system of claim 1 wherein the input means comprises means for obtaining a plurality of implicit measures including the particular implicit measure and the processing means comprises means for generating the implicit rating as a function of the plurality of implicit measures.
 5. The prediction information system of claim 1 wherein the input means comprises means for obtaining a plurality of implicit measures including the particular implicit measure and the processing means comprises means for generating a plurality of implicit ratings as a function of the plurality of implicit measures.
 6. The prediction information system of claim 1 wherein the processing means comprises means for deriving the implicit rating from the particular implicit measure using a receiver operating curve (ROC).
 7. The prediction information system of claim 6 wherein the processing means comprises means for deriving the ROC from the items, a signal to noise characterization, and a plurality of implicit measures including the particular implicit measure.
 8. The prediction information system of claim 7 wherein the processing means comprises means for deriving the signal to noise characterization from a set of explicit ratings.
 9. The prediction information system of claim 6 wherein the processing means comprises means for deriving rating threshold values for converting a plurality of implicit measures to implicit ratings from the ROC the plurality of implicit measures including the particular implicit measure.
 10. The prediction information system of claim 1 wherein the processing means comprises means for deriving a quality metric receiver operating curve (ROC) of a mapping between an implicit measure and an implicit rating, the mapping being based on the items, a signal to noise characterization, and predictions from a prediction engine.
 11. The prediction information system of claim 10 wherein the processing means comprises means for deriving a plurality of quality metric ROCs each of which corresponds to a different mapping and for selecting one of the mappings for subsequent use based on the plurality of quality metric ROCs.
 12. The prediction information system of claim 10 wherein the processing means comprises means for determining if a plurality of implicit ratings including the particular implicit measure are better than a set of explicit ratings based on the quality metric ROC.
 13. The prediction information system of claim 1 wherein the processing means and rating broker are located within a single apparatus.
 14. The prediction information system of claim 1 wherein the processing means comprises means for communicating with the rating broker through an interactive network.
 15. The prediction information system of claim 14 wherein the user interface means, input means, and processing means together form a client computing device which is operatively coupled through the interactive network to a server which executes a process that performs functions of the rating broker.
 16. The prediction information system of claim 14 wherein the processing means comprises a first processing means and a second processing means which together perform the operations of the processing means, and wherein the user interface means, input means, and first processing means together form a client computing device which is operatively coupled through the interactive network to a server which comprises the second processing means and which executes a process that performs functions of the rating broker.
 17. A method of operating a collaborative filtering electronic rating broker on a computer system in order to provide prediction information to a user, comprising steps of:(a) presenting items as information to the user on a display device; (b) obtaining d particular implicit measure from the user based on the items through an input device; (c) generating an implicit rating as a function of the particular implicit measure; (d) submitting the particular implicit rating to the collaborative filtering rating broker; (e) receiving prediction results for other items from the collaborative filtering rating broker; and (f) presenting the prediction results to the user as the prediction information on the display device.
 18. The method of claim 17 wherein the obtaining step comprises deriving the implicit measure based on criteria selected from a group consisting of: user time spent viewing a particular item, user time spent listening to a particular item, and user time spent sampling a particular item.
 19. The method of claim 17 wherein the obtaining step comprises deriving the implicit measure based on subsequent actions taken, the subsequent actions taken being selected from a group consisting of: a user viewing details of a particular item after viewing only a title, saving a particular item, forwarding a particular item, saving a return address of a particular item, deleting a particular item, replying to a particular item, and printing a particular item.
 20. The method of claim 17 wherein the generating step comprises deriving the implicit rating as a function of a plurality of implicit measures including the particular implicit measure.
 21. The method of claim 17 wherein the generating step comprises generating a plurality of implicit ratings as a function of a plurality of implicit measures including the particular implicit measure.
 22. The method of claim 17 wherein the generating step comprises deriving the implicit rating from the particular implicit measure using a receiver operating curve (ROC).
 23. The method of claim 22 wherein the generating step further comprises deriving the ROC from the items, a signal to noise characterization, and a plurality of implicit measures including the particular implicit measure.
 24. The method of claim 23 wherein the generating step further comprises deriving the signal to noise characterization from a set of explicit ratings.
 25. The method of claim 22 wherein the generating step further comprises deriving rating threshold values for converting a plurality of implicit measures to implicit ratings from the ROC, the plurality of implicit measures including the particular implicit measure.
 26. The method of claim 17 further comprising a step of deriving a quality metric receiver operating curve (ROC) of a mapping between an implicit measure and an implicit rating, the mapping being based on the items, a signal to noise characterization, and predictions from a prediction engine.
 27. The method of claim 26 wherein the deriving step comprises deriving a plurality of quality metric ROCs each of which corresponds to a different mapping, the method further comprising a step of selecting one of the mappings for subsequent use based on the plurality of quality metric ROCs.
 28. The method of claim 26 further comprising a step of determining if a plurality of implicit ratings including the particular implicit measure are better than a set of explicit ratings based on the quality metric ROC.
 29. A program storage device readable by a computer system tangibly embodying a program of instructions executable by the computer system to perform a method of operating an electronic collaborative filtering rating broker on a computer system in order to provide prediction information to a user, the method comprising steps of:(a) presenting items as information to thc user on a display device; (b) obtaining a particular implicit measure from the user based on the items through an input device; (c) generating an implicit rating as a function of the particular implicit measure; (d) submitting the particular implicit rating to the collaborate filtering rating broker; (e) receiving prediction results for other items from the collaborative filtering rating broker; and (f) presenting the prediction results to the user as the prediction information on the display device. 